package school.baby.nem165.fragments;

import school.baby.nem165.R;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.EditText;

import com.google.tagmanager.Container;
import com.google.tagmanager.ContainerOpener;
import com.google.tagmanager.ContainerOpener.OpenType;
import com.google.tagmanager.TagManager;

public class HomeFragment extends BaseFragment implements OnClickListener {

	private EditText m_txtUserName;

	private Container container;
	private String RELEASE_VERSION_KEY = "release_app_version";

	/**
	 * On create view, set layout and update button listeners.
	 */
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.home_fragment, container, false);
		return view;
	}

	@Override
	public void onStart() {
		TagManager tagManager = TagManager.getInstance(getActivity());

		ContainerOpener.ContainerFuture containerFuture = ContainerOpener
				.openContainer(tagManager,
						getString(R.string.google_tag_manager_id),
						OpenType.PREFER_NON_DEFAULT, null);

		super.onStart();
		container = containerFuture.get();
		container.refresh();

	}

	@Override
	public void onResume() {
		super.onResume();
	}

	@Override
	public void onClick(View v) {
	}

}
